package com.ys.gulimall.search.feign;

import com.ys.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description:
 * @author： yeswater
 * @create： 2024/5/13
 */

@FeignClient("gulimall-product")
public interface ProductFeignService {
	
	@GetMapping("/product/attr/info/{attrId}")
	public R attrInfo(@PathVariable("attrId") Long attrId);
	
	@RequestMapping("/product/brand/infos")
	R brandInfo(@RequestParam("brandIds") List<Long> brandIds);
	
}
